<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>主机配置页面</title>
	<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../../css/public.css" media="all" />
	<link rel="stylesheet" href="../../../css/index.css" media="all" />
</head>
<body class="childrenBody">
<div class="layui-form">
	<blockquote class="layui-elem-quote">
		<div class="layui-inline">
			<input type="text" id="key-value" lay-verify="required" placeholder="请输入任意关键字" autocomplete="off" class="layui-input">
		</div>
		<div class="layui-inline button-group" id="hostconfig-btns" style="margin-left: 5px">
			<button class="layui-btn active-btn" id="search-btn">查询</button>
			<button class="layui-btn layui-btn-normal active-btn" id="hostAdd" >添加主机</button>
			<button class="layui-btn layui-btn-warm active-btn" id="multihostAdd" style="background-color:#5FB878">批量添加</button>
			<button class="layui-btn layui-btn-danger active-btn" id="multiDelete" >批量删除</button>
			<button class="layui-btn layui-btn-normal active-btn" id="commandExec" >命令执行</button>
		</div>

	</blockquote>
	<table class="layui-hide" id="hosts-table" lay-filter="hostInfo"></table>
	<!--主机操作按钮-->
	<script type="text/html" id="barDemo">
		<a class="layui-btn  layui-btn-sm tool-bar" lay-event="reConn"><i class="layui-icon">&#xe64d;</i>重连</a>
		<a class="layui-btn layui-btn-sm tool-bar" lay-event="edit" style="background-color:#5FB878"><i class="layui-icon">&#xe63c;</i>查看</a>
		<a class="layui-btn layui-btn-danger layui-btn-sm tool-bar" lay-event="delete"><i class="layui-icon">&#xe640;</i>删除</a>
	</script>
	<!-- 通过返回的数据判断主机的连接状态 -->
	<script type="text/html" id="connStatus">
		{{#  if(d.conn_status == 0){ }}
		<a class="layui-btn layui-btn-sm "><i class="layui-icon">&#xe616;</i>成功</a>
		{{#  } else { }}
		<a class="layui-btn layui-btn-danger layui-btn-sm "><i class="layui-icon">&#x1007;</i>失败</a>
		{{#  } }}
	</script>
	<!-- 隐藏表格中主机的密码信息 -->
	<script type="text/html" id="hide_passwd">
		{{#  if(d.login_pwd != ""){ }}
		<a>******</a>
		{{#  } }}
	</script>
</div>
</body>
<script type="text/javascript" src="../../../layui/layui.js"></script>
<script type="text/javascript" src="hostConfig.js"></script>
</html>